Ext.define("AmpleHarvest.objects.harvestrequest.store.HarvestRequestList", 
{
    extend: 'Ext.data.Store',
    requires:
    [
      "AmpleHarvest.objects.harvestrequest.model.HarvestRequest"
    ],
    model: 'AmpleHarvest.objects.harvestrequest.model.HarvestRequest',
    remoteSort: true,
    m_obj_Params : null,
    proxy: 
    {
        type: 'ajax',
        url:  obj_config.C_STR_EXTERNAL_PATH+'/rest/harvestrequest/list.php',
        baseParams      :{
/*<?php 
         print($obj_TABLE_Harvest_Requests->get_TableName());
         print("_");
         print($obj_TABLE_Harvest_Requests->get_Column_Name($obj_TABLE_Harvest_Requests->m_int_COL_UserID));
         print(":");
         print("'".$obj_UserValidation->get_IDFromUserName($obj_UserValidation->get_UserName())."'");
?>*/
      },
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'total'
        }
    },
    initComponent: function() 
    {
      this.m_obj_Params = new Object();
      this.callParent();
    },
    
    set_Action:function(str_Action)
    {
      if(!this.m_obj_Params)
      {
         this.m_obj_Params = new Object;
      }
      this.m_obj_Params.action = str_Action;
      
      this.set_Params();
    } ,
    
    set_Params:function()
    {
         
      if(!this.m_obj_Params)
      {
         this.m_obj_Params = new Object;
      }
      this.proxy.extraParams = this.m_obj_Params;
    } 
});